<!--#
    var limit = parameter.limit!10;
    var member = platform.getCurrentMember();
    var currentBgId = member.topBgId!0;
-->
<ul id="topBgListView" member_id="${member.id}" limit="5" class="topBg-list">
</ul>
<link rel="stylesheet" href="${ctxPath}${tpl}/css/space/top_bg.css" />
<script id="topBgListTpl" type="text/html">
    {{#  layui.each(d.data, function(index, image){ }}
    <li class="bg_li" >
        <div class="marker" bgId="{{image.id}}"></div>
        {{# if (image.id == '${currentBgId}') { }}
            <i class="layui-icon layui-icon-ok current_tag"></i>
        {{# }}}
        <img src="/core/file/inline/{{image.id}}/{{image.name }}">
    </li>
    {{#  }); }}
    {{#  if(d.count > d.limit) { }}
    <li>
        <div id="topBgPage" class="align-center"></div>
    </li>
    {{# }}}
</script>

<script>
        layui.extend({
            topBg : '{/}${tpl}/layuiExts/member/topBg'
        }).use(['topBg'],function() {

        });
    </script>